# Makefile created by MaShang(gcc version 4.4.3)

CPP  = arm-linux-g++
CC   = arm-linux-gcc
#CPP   = gcc -E
#CC    = gcc

WINDRES =
RES  = 
OBJ  = uart2.o  $(RES)
LINKOBJ  = uart2.o $(RES)
LIBS += -L ./lib -lsqlite3 -lpthread -ldl -lcurl -lrt -lcrypto
INCS += -I ./include 
CXXINCS = 
BIN  = uart2
CXXFLAGS = $(CXXINCS)  
CFLAGS = $(INCS)  
RM = rm -f

.PHONY: all clean clean-custom

all: uart2


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CC) -static  -g -o uart2 uart2.c $(LIBS) $(CFLAGS)

uart2.o: uart2.c
	$(CC) -g -c uart2.c -o uart2.o $(CFLAGS)

